import request from '@/utils/request'
import BaseUrl from '@/utils/BaseUrl'

/**
 * @description: 基础信息-企业企业API
 * @author:  MqSql
 * @version: 1.0
 * @date: 2020-08-06 18:12:36
 */

/**
 * 列表
 * @param query
 * @returns
 */
export function listDicInfo(query) {
  return request({
    url: BaseUrl.API_DIC + '/dic/info/list',
    data: query
  })
}

/**
 * 删除
 * @param data
 * @returns
 */
export function deleteDicInfo(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/info/delete',
    data: data
  })
}

/**
 * 增加
 * @param data
 * @returns
 */
export function addDicInfo(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/info/add',
    data: data
  })
}

/**
 * 修改
 * @param data
 * @returns
 */
export function updateDicInfo(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/info/update',
    data: data
  })
}

/**
 * 获取单个
 * @param query
 * @returns
 */
export function getDicInfo(query) {
  return request({
    url: BaseUrl.API_DIC + '/dic/info/get',
    data: query
  })
}
